package com.hjq.demo.http.api;

import com.hjq.http.config.IRequestApi;

import java.util.List;

/**
 * author : Android 轮子哥
 * github : https://github.com/getActivity/AndroidProject
 * time   : 2019/12/07
 * desc   : 获取出货列表
 */
public final class ShipmentListApi implements IRequestApi {

    @Override
    public String getApi() {
        return "shipment/shipment/list1";
    }

    /** 每页显示数量 */
    private String pageSize;
    /**  第几页*/
    private String pageNum;
    /** 搜索名称id */
    private String userId;
    /** 商品名称 */
    private String tradeName;
    /** 开始时间 */
    private String beginTime;
    /** 结束时间 */
    private String endTime;


    public ShipmentListApi setTradeName(String tradeName) {
        this.tradeName = tradeName;
        return this;
    }

    public ShipmentListApi setBeginTime(String beginTime) {
        this.beginTime = beginTime;
        return this;
    }
    public ShipmentListApi setEndTime(String endTime) {
        this.endTime = endTime;
        return this;
    }

    public ShipmentListApi setPageSize(String pageSize) {
        this.pageSize = pageSize;
        return this;
    }



    public ShipmentListApi setPageNum(String pageNum) {
        this.pageNum = pageNum;
        return this;
    }



    public ShipmentListApi setUserId(String userId) {
        this.userId = userId;
        return this;
    }
    public final class Bean {
            private int total;
            private List<RowsBean> rows;
            private int code;
            private String message;

            public int getTotal() {
                return total;
            }

            public void setTotal(int total) {
                this.total = total;
            }

            public List<RowsBean> getRows() {
                return rows;
            }

            public void setRows(List<RowsBean> rows) {
                this.rows = rows;
            }

            public int getCode() {
                return code;
            }

            public void setCode(int code) {
                this.code = code;
            }

            public String getMessage() {
                return message;
            }

            public void setMessage(String message) {
                this.message = message;
            }

            public  class RowsBean {
                private String searchValue;
                private String createBy;
                private String createTime;
                private String updateBy;
                private String updateTime;
                private String remark;
                private ParamsBean params;
                private int id;
                private String userId;
                private String address;
                private String phoneNumber;
                private String tradeName;
                private String specs;
                private String number;
                private double unitPrice;
                private double sumOfMoney;
                private double amountPaid;
                private double unpaidAmount;
                private String createdTime;
                private String updatedTime;

                public String getSubType() {
                    return subType;
                }

                public void setSubType(String subType) {
                    this.subType = subType;
                }

                private String subType;
                private Boolean isSelect ;
                public Boolean getSelect() {
                    return isSelect;
                }

                public void setSelect(Boolean select) {
                    isSelect = select;
                }



                public String getSearchValue() {
                    return searchValue;
                }

                public void setSearchValue(String searchValue) {
                    this.searchValue = searchValue;
                }

                public String getCreateBy() {
                    return createBy;
                }

                public void setCreateBy(String createBy) {
                    this.createBy = createBy;
                }

                public String getCreateTime() {
                    return createTime;
                }

                public void setCreateTime(String createTime) {
                    this.createTime = createTime;
                }

                public String getUpdateBy() {
                    return updateBy;
                }

                public void setUpdateBy(String updateBy) {
                    this.updateBy = updateBy;
                }

                public String getUpdateTime() {
                    return updateTime;
                }

                public void setUpdateTime(String updateTime) {
                    this.updateTime = updateTime;
                }

                public String getRemark() {
                    return remark;
                }

                public void setRemark(String remark) {
                    this.remark = remark;
                }

                public ParamsBean getParams() {
                    return params;
                }

                public void setParams(ParamsBean params) {
                    this.params = params;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getUserId() {
                    return userId;
                }

                public void setUserId(String userId) {
                    this.userId = userId;
                }

                public String getAddress() {
                    return address;
                }

                public void setAddress(String address) {
                    this.address = address;
                }

                public String getPhoneNumber() {
                    return phoneNumber;
                }

                public void setPhoneNumber(String phoneNumber) {
                    this.phoneNumber = phoneNumber;
                }

                public String getTradeName() {
                    return tradeName;
                }

                public void setTradeName(String tradeName) {
                    this.tradeName = tradeName;
                }

                public String getSpecs() {
                    return specs;
                }

                public void setSpecs(String specs) {
                    this.specs = specs;
                }

                public String getNumber() {
                    return number;
                }

                public void setNumber(String number) {
                    this.number = number;
                }

                public double getUnitPrice() {
                    return unitPrice;
                }

                public void setUnitPrice(double unitPrice) {
                    this.unitPrice = unitPrice;
                }

                public double getSumOfMoney() {
                    return sumOfMoney;
                }

                public void setSumOfMoney(double sumOfMoney) {
                    this.sumOfMoney = sumOfMoney;
                }

                public double getAmountPaid() {
                    return amountPaid;
                }

                public void setAmountPaid(double amountPaid) {
                    this.amountPaid = amountPaid;
                }

                public double getUnpaidAmount() {
                    return unpaidAmount;
                }

                public void setUnpaidAmount(double unpaidAmount) {
                    this.unpaidAmount = unpaidAmount;
                }

                public String getCreatedTime() {
                    return createdTime;
                }

                public void setCreatedTime(String createdTime) {
                    this.createdTime = createdTime;
                }

                public String getUpdatedTime() {
                    return updatedTime;
                }

                public void setUpdatedTime(String updatedTime) {
                    this.updatedTime = updatedTime;
                }

                public  class ParamsBean {
                }
            }
    }
}